﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace PassportManage
{
    public partial class Form_BigFront : Form
    {
        public bool bClose;
        public Form_BigFront()
        {
            InitializeComponent();
            bClose = false;
        }
        private delegate void SetContentDelegate(int l, int d, int c);
        private void SetContentDelegateProc(int l, int d, int c)
        {
            textBox1.Text = l.ToString();
            textBox2.Text = d.ToString();
            textBox3.Text = c.ToString();
        }
        public void ExternSetContent(int l, int d, int c)
        {
            while (!this.IsHandleCreated) ;
            this.Invoke(new SetContentDelegate(SetContentDelegateProc), new Object[] { l, d, c });
        }
        private void Form_BigFront_FormClosing(object sender, FormClosingEventArgs e)
        {
            e.Cancel = !bClose;
        }
    }
}
